export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  // labelWidth: 110,//设置列名称长度
  // searchLabelWidth: 110,//搜索按钮是否单独成行，并控制搜索按钮的长度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  column: [
    {
      label: "分组标签id",
      prop: "id",
      type: "input",
      hide: true,
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
      span: 12
    },
    {
      label: "分组标题",
      prop: "title",
      type: "input",
      span: 12
    },
    {
      label: "店铺Id",
      prop: "shopId",
      type: "select",
      props: {
        label: 'shopName',
        value: 'shopId'
      },
      formatter: (val, value, label) => {
        return `${label}(${value})`
      },
      dicUrl: `/admin/product/shopDetail/list`,
      search: true,
    },
    {
      label: "状态",
      prop: "status",
      type: 'switch',
      dicData: [{
        label: '禁用',
        value: false
      }, {
        label: '启用',
        value: true
      }],
      search: true,
      value: true,
      span: 12
    },
    {
      label: "默认类型",
      prop: "isDefault",
      type: 'select',
      dicData: [{
        label: '商家自定义',
        value: false
      }, {
        label: '系统默认',
        value: true
      }],
      search: true,
      span: 12
    },
    {
      label: "商品数量",
      prop: "prodCount",
      type: "input",
      span: 12
    },
    {
      label: "列表样式",
      prop: "style",
      type: 'select',
      dicData: [{
        label: '一列一个',
        value: 0
      }, {
        label: '一列两个',
        value: 1
      }, {
        label: '一列三个',
        value: 2
      }],
      search: true,
      span: 12
    },
    {
      label: "排序",
      prop: "sortOrder",
      type: "input",
      span: 12
    },
    {
      label: "创建人",
      prop: "createBy",
      type: "input",
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
    },
    {
      label: "创建时间",
      prop: "createTime",
      type: "datetime",
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
    },
  ]
}
